<include file="public@header"/>
<style type="text/css">
    .pic-list li {
        margin-bottom: 5px;
    }
</style>
</head>
<body>
<div class="wrap js-check-wrap">
    <ul class="nav nav-tabs">
        <li><a href="{:url('Alsdk/DescribeUserDomains')}">域名列表</a></li>
        <li><a href="{:url('Alsdk/AddLiveDomain')}">添加域名</a></li>
        <li class="active"><a>{$info->DomainName}</a></li>
    </ul>
    <form action="{:url('Alsdk/AddLiveDomain')}" method="post" class="form-horizontal js-ajax-form margin-top-20" onsubmit="submitTest();">
        <div class="row">
            <div class="col-md-9">
                <table class="table table-bordered">
                    <tr>
                        <th width="120">直播域名</th>
                        <td><input style="border:none;" class="form-control" value="{$info->DomainName}" readonly/></td>
                    </tr>
                    <tr>
                        <th>CNAME域名</th>
                        <td><input style="border:none;" class="form-control" value="{$info->Cname}" readonly/></td>
                    </tr>
                    <tr>
                        <th>直播域名类型</th>
                        <td><input style="border:none;" class="form-control" value="{$info->LiveDomainType}" readonly/></td>
                    </tr>
                    <?php $status = $info->DomainStatus ;?>
                    <tr>
                        <th>会议状态</th>
                        <td>
                            <if condition="$status eq 'online'" />
                                <input style="border:none;" class="form-control" value="启用" readonly/>
                            <elseif condition="$status eq 'offline'" />
                                <input style="border:none;" class="form-control" value="停用" readonly/>
                            <elseif condition="$status eq 'configuring'" />
                                <input style="border:none;" class="form-control" value="配置中" readonly/>
                            <elseif condition="$status eq 'configure_failed'" />
                                <input style="border:none;" class="form-control" value="配置失败" readonly/>
                            <elseif condition="$status eq 'checking'" />
                                <input style="border:none;" class="form-control" value="正在审核" readonly/>
                            <elseif condition="$status eq 'check_failed'" />
                                <input style="border:none;" class="form-control" value="审核失败" readonly/>
                            </if>
                        </td>
                    </tr>
                    
                    <tr>
                        <th>创建时间</th>
                        <td><input style="border:none;" class="form-control" value="{$info->GmtCreated}" readonly/></td>
                    </tr>
                    <tr>
                        <th>最近修改时间</th>
                        <td><input style="border:none;" class="form-control" value="{$info->GmtModified}" readonly/></td>
                    </tr>
                    <tr>
                        <th>域名所在区域</th>
                        <td><input style="border:none;" class="form-control" value="{$info->Region}" readonly/></td>
                    </tr>
                    <tr>
                        <th>备注</th>
                        <td><input style="border:none;" class="form-control" value="{$info->Description}" readonly/></td>
                    </tr>
                    <?php $SSLProtocol = $info->SSLProtocol ;?>
                    <tr>
                        <th>是否开启ssl证书</th>
                        <td>
                            <if condition="$SSLProtocol eq 'om'" />
                                <input style="border:none;" class="form-control" value="开启" readonly/>
                            <elseif condition="$SSLProtocol eq 'off'" />
                                <input style="border:none;" class="form-control" value="关闭" readonly/>
                            </if>
                        </td>
                    </tr>
                    <tr>
                        <th>https证书公钥</th>
                        <td><input style="border:none;" class="form-control" value="{$info->SSLPub}" readonly/></td>
                    </tr>
                    <tr>
                        <th>https证书名称</th>
                        <td><input style="border:none;" class="form-control" value="{$info->CertName}" readonly/></td>
                    </tr>
                    <tr>
                        <th>加速区域</th>
                        <td><input style="border:none;" class="form-control" value="{$info->Scope}" readonly/></td>
                    </tr>
                </table>
            </div>
        </div>
    </form>
</div>
<script type="text/javascript" src="__STATIC__/js/admin.js"></script>>
</body>
</html>
